<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

switch (UV::readMQ($route->POST("type")))
{
	case "login" :	$login = UV::readMQ($route->POST("login"));
					echo $db->getCell("select `login` from `users` where `login` = '$login'");
					break;
	case "email" :	$email = UV::readMQ($route->POST("email"));
					echo $db->getCell("select `email` from `users` where `email` = '$email'");
					break;
}
?>